import { AutoIncrementId, Code, DateTime, Price, PrimaryUuid, Uuid } from "../utils";
import { Entity } from "typeorm";


@Entity({
    name: 'fj_statement'
})
export class FjStatement {

    @PrimaryUuid()
    id: string;

    @AutoIncrementId()
    statement_id: number;

    @Code({ comment: '账期' })
    statement_date: string;

    @Code({ comment: '账期类型' })
    type: string;

    @Code({ comment: '批发商或供应商' })
    code: string;

    @DateTime({ comment: '生成时间' })
    create_date: Date;

    @Code({ comment: '生成方式' })
    generate_type: string;

    @Code({ comment: '结算状态' })
    status: string;

    @Code({ comment: '结算时间', nullable: true })
    paytime: Date;

    @Uuid({ comment: '操作人' })
    create_user_id: string;

    @Price({ default: 0 })
    money: number;
}